import request from '@/utils/request.js'

export const getAddressList = params => {
  return request({
    method: 'GET',
    url: '/address/list',
    params,
  })
}

// 获取省市区列表
export const getCityList = () => {
  return request({
    method: 'GET',
    url: '/city_list',
  })
}

// 新增或编辑地址
export const addOrEditAddress = data => {
  return request({
    method: 'POST',
    url: '/address/edit',
    data,
  })
}
